<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/mui.min.css">
    <link rel="stylesheet" href="css/updatapwd.css">
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
    <title>修改密码</title>
</head>
<body>
<header class="mui-bar mui-bar-nav head">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title nav-tit">修改密码</h1>
</header>
<main>
    <div class="mui-content main">
        <!--原密码-->
        <div class="outside">
            <span>原密码</span>
            <input type="text" placeholder="请输入旧密码" v-model="oldpwd">
        </div>
        <!--新密码-->
        <div class="outside">
            <span>新密码</span>
            <input type="text" placeholder="请输入新密码" v-model="newpwd">
        </div>
        <!--确认密码-->
        <div class="outside">
            <span>确认密码</span>
            <input type="text" placeholder="请确认新密码" v-model="newpwds">
        </div>
        <button @click="sub">确认修改</button>
    </div>
</main>
<footer>
</footer>
<script src="js/mui.min.js"></script>
<script type="text/javascript" charset="utf-8">
    const API_PROXY = 'https://bird.ioliu.cn/v1/?url='
    new Vue({
        el:'.main',
        data(){
            return{
                oldpwd:'',
                newpwd:'',
                newpwds:''
            }
        },
        methods:{
            sub(){
                axios.post(API_PROXY + 'mingpian.32one.top/Index/Member/updatePwd',{
                    oldPwd:this.oldpwd,
                    newpwd:this.newpwd,
                    newConfirmPwd:this.newpwds
                })
                    .then(res=>{
                        console.log(res);
                        mui.toast(res.data.msg)
                    })
            }
        }
    })
</script>
</body>

</html>